package com.mason.service.user;

import com.github.pagehelper.PageInfo;
import com.mason.model.UserDomain;
import com.mason.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author yunfei.shang
 * @title
 * @date 2018/05/24 11:19
 * @descreption
 */
public interface UserService extends IService<UserDomain>{

    UserDomain selectById(Map mapKey);

    int addUser(UserDomain user);

    PageInfo<UserDomain> findAllUser(int pageNum, int pageSize);

    int update(UserDomain user);

    int updateByName(UserDomain user);

    int updateByIds(List<Integer> idList);
}
